package com.example.commom.es;

import org.elasticsearch.action.delete.DeleteRequest;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.client.RestHighLevelClient;

public interface ElasticsearchOperation {

    boolean executeUpdate(RestHighLevelClient client, IndexRequest request);

    boolean executeDelete(RestHighLevelClient client, DeleteRequest request);
}
